package com.buiminhthang.food;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class SplashScreen extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);

		// thread splash
		Thread bg = new Thread() {
			public void run() {
				try {
					sleep(2 * 1000);
					Intent i = new Intent(getBaseContext(), LoginActivity.class);
					startActivity(i);
					finish();
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

			}
		};
		bg.start();
	}
}
